<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script>
</script>
</head>
<body>


<script>

function f(){
    document.write('<p>调用事件处理函数时动态生成的内容</p>');
}
document.write('<p onclick="f()">文档解析时动态生成的内容</p>');


</script>


</body>
</html>